package com.yami.shop.mystery.common.enums;

/**
 * @author wxf
 * @date 2023/4/20 9:29
 */
public enum ActivityRuleConditionEnum {

    GT("01","大于"),

    LT("02","小于"),

    EQ("03","等于"),

    GTE("04","大于等于"),

    LTE("05","小于等于"),
    ;

    private final String value;
    private final String label;

    ActivityRuleConditionEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public static ActivityRuleConditionEnum instance(String value) {
        ActivityRuleConditionEnum[] enums = values();
        for (ActivityRuleConditionEnum statusEnum : enums) {
            if (statusEnum.value.equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
